import Vue from 'vue'
import VueRouter from 'vue-router'
import ElementUI from 'element-ui';
import addCar from '../views/ljy/addcar/addcar.vue'
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios)
Vue.use(VueRouter)
Vue.use(ElementUI)
Vue.use(addCar);
const routes = [
	//刘佳雨------------------------------
	{
		path: '/Car',
		name: 'Car',
		component: () => import('../views/ljy/car/car.vue')
	},
	{
		path: '/Payment',
		name: 'Payment',
		component: () => import('../views/ljy/payment/Payment.vue')
	},
	{
		path: '/parts',
		name: 'parts',
		component: () => import('../views/wrx/parts.vue')
	},

	// 娄方信------------------------------------------------------
	{
		// 跳转我的主页
		path: "/",
		component: () => import("../views/lfx/Home.vue"),
		children: [{
				//跳转到详情
				path: "/zone",
				component: () => import("../views/lfx/Zone.vue"),
			},	
		],

	},
	{ //这是最新活动的组件
		path: "/active",
		component: () => import("../views/lfx/Activity.vue"),	
	},	
	{
		path: "/active/flower",
		component: () => import("../views/lfx/Flower.vue")
	},
	{
		path: "/active/mon",
		component: () => import("../views/lfx/Mon.vue")
	},
	{
		path: "/active/newpeople",
		component: () => import("../views/lfx/NewPeople.vue")
	},



	/* --------------王仁鑫-------------*/
	{
		path: '/goodscontent',
		name: 'goodscontent',
		component: () => import('../views/wrx/goodscontent.vue')
	},



	//刘怡

	{
		path: '/root',
		component: () => import("../views/root/root.vue"),
		// children:[{
		// 	path: '/root/:xuhao',
		// 	component: () => import("../views/root/root.vue"),
		// }]
	},

	//陆松
	{
		path: '/cake',
		name: 'Cake',
		component: () => import('../views/cake/Cake.vue')
	},
	// +++++++++++++++++++++++++

	{
		path: '/bread',
		name: 'bread',
		component: () => import('../views/wrx/bread.vue')
	},
	{
		path: '/xiaoshi',
		name: 'xiaoshi',
		component: () => import('../views/wrx/xiaoshi.vue')
	},
	//雷乔楚+++++++++++++++++++++++++++++++++++++++++
	{
		path: "/login",
		name: "login",
		component: () => import("../views/lqc/loginBox.vue")
	},
	{
		path: "/personal",
		name: "personal",
		component: () => import("../views/lqc/personal.vue")
	},

	{
		path: "/myOrder",
		name: "myOrder",
		component: () => import("../views/lqc/myOrder.vue")
	},
	{
		path: "/myMoney",
		name: "myMoney",
		component: () => import("../views/lqc/myMoney.vue")
	},
	{
		path: "/order",
		name: "order",
		component: () => import("../views/lqc/order.vue")
	},
]
const router = new VueRouter({
	mode: 'history',
	base: process.env.BASE_URL,
	routes
})

export default router